package com.android.lovepick.util;

public class ChatMsg
{
	private String date;
	private String content;
	private boolean sendOrRcv = true;

	/**
	 * @return the date
	 */
	public String getDate()
	{
		return date;
	}

	/**
	 * @param date the date to set
	 */
	public void setDate(String date)
	{
		this.date = date;
	}

	/**
	 * @return the content
	 */
	public String getContent()
	{
		return content;
	}

	/**
	 * @param content the content to set
	 */
	public void setContent(String content)
	{
		this.content = content;
	}

	/**
	 * 标识信息种类, 发送信息或接收消息
	 * 
	 * @return <ul>
	 *         <li>true: 发送信息</li>
	 *         <li>false: 接收信息</li>
	 *         </ul>
	 */
	public boolean isSendOrRcv()
	{
		return sendOrRcv;
	}

	/**
	 * @param sendOrRcv the sendOrRcv to set
	 */
	public void setSendOrRcv(boolean sendOrRcv)
	{
		this.sendOrRcv = sendOrRcv;
	}

	@Override
	public String toString()
	{
		String str = "";
		str += "{";
		str += "date:" + date + ",";
		str += "content:" + content + ",";
		str += "isSendOrRcv:" + String.valueOf(sendOrRcv);
		str += "}";

		return str;
	}

}
